package com.feifan.service;

import com.feifan.dao.IUserDao;
import com.feifan.dao.UserDao;
import com.feifan.vo.User;

import java.util.List;

public class UserService implements IUserService {

    private UserDao userdao=new UserDao();
    @Override
    public List<User> show() {
        return userdao.show();
    }

    @Override
    public boolean delete(int id) {
        return userdao.delete(id);//id为主键
    }

    @Override
    public boolean add(User user) {
        return userdao.add(user);
    }

    @Override
    public User update(int id) {
        return userdao.update(id);
    }
}
